package bean;

import java.io.Serializable;

/**
 * concern
 * 
 * @author
 */
public class Concern implements Serializable {
	private Integer concernid;

	private Integer userid;

	private Integer beconcerneduserid;

	private String a;

	private String b;

	private String c;

	private static final long serialVersionUID = 1L;

	public Integer getConcernid() {
		return concernid;
	}

	public void setConcernid(Integer concernid) {
		this.concernid = concernid;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public Integer getBeconcerneduserid() {
		return beconcerneduserid;
	}

	public void setBeconcerneduserid(Integer beconcerneduserid) {
		this.beconcerneduserid = beconcerneduserid;
	}

	public String getA() {
		return a;
	}

	public void setA(String a) {
		this.a = a;
	}

	public String getB() {
		return b;
	}

	public void setB(String b) {
		this.b = b;
	}

	public String getC() {
		return c;
	}

	public void setC(String c) {
		this.c = c;
	}

	@Override
	public boolean equals(Object that) {
		if (this == that) {
			return true;
		}
		if (that == null) {
			return false;
		}
		if (getClass() != that.getClass()) {
			return false;
		}
		Concern other = (Concern) that;
		return (this.getConcernid() == null ? other.getConcernid() == null
				: this.getConcernid().equals(other.getConcernid()))
				&& (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
				&& (this.getBeconcerneduserid() == null ? other.getBeconcerneduserid() == null
						: this.getBeconcerneduserid().equals(other.getBeconcerneduserid()))
				&& (this.getA() == null ? other.getA() == null : this.getA().equals(other.getA()))
				&& (this.getB() == null ? other.getB() == null : this.getB().equals(other.getB()))
				&& (this.getC() == null ? other.getC() == null : this.getC().equals(other.getC()));
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((getConcernid() == null) ? 0 : getConcernid().hashCode());
		result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
		result = prime * result + ((getBeconcerneduserid() == null) ? 0 : getBeconcerneduserid().hashCode());
		result = prime * result + ((getA() == null) ? 0 : getA().hashCode());
		result = prime * result + ((getB() == null) ? 0 : getB().hashCode());
		result = prime * result + ((getC() == null) ? 0 : getC().hashCode());
		return result;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", concernid=").append(concernid);
		sb.append(", userid=").append(userid);
		sb.append(", beconcerneduserid=").append(beconcerneduserid);
		sb.append(", a=").append(a);
		sb.append(", b=").append(b);
		sb.append(", c=").append(c);
		sb.append(", serialVersionUID=").append(serialVersionUID);
		sb.append("]");
		return sb.toString();
	}
}